package com.zyy.ui.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName: ResultDTO
 * @Description: 统一返回结果DTO
 * @Author: zyy
 * @Date: 2020/04/25 18:36
 * @Version: 1.0
 */
@Data
@ApiModel("结果对象")
public class ResultDTO<T> implements Serializable {
    @ApiModelProperty(value = "返回编码")
    private String code;
    @ApiModelProperty(value = "返回信息")
    private String msg;
    @ApiModelProperty(value = "路径")
    private String path;
    @ApiModelProperty(value = "返回结果")
    private T data;
}
